﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RuanGong.foreground.B
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
            List<double> datetime1 = new List<double>();
            for (int i = 1; i <= value1.Count; i++)
            {
                datetime1.Add(i);
            }
            List<double> datetime2 = new List<double>();
            for (int i = 1; i <= value2.Count; i++)
            {
                datetime2.Add(i);
            }
            List<double> datetime3 = new List<double>();
            for (int i = 1; i <= value3.Count; i++)
            {
                datetime3.Add(i);
            }
            List<double> datetime4 = new List<double>();
            for (int i = 1; i <= value4.Count; i++)
            {
                datetime4.Add(i);
            }
            formsPlot1.Plot.XLabel("时间/天");
            formsPlot1.Plot.YLabel("数据");
            formsPlot1.Plot.Title("xx人");
            formsPlot1.Plot.AddSignalXY(datetime1.ToArray(), value1.ToArray(), Color.Purple);
            formsPlot1.Plot.AxisAuto();
            formsPlot2.Plot.XLabel("时间/天");
            formsPlot2.Plot.YLabel("数据");
            formsPlot2.Plot.Title("xx人");
            formsPlot2.Plot.AddSignalXY(datetime2.ToArray(), value2.ToArray(), Color.Plum);
            formsPlot2.Plot.AxisAuto();
            formsPlot3.Plot.XLabel("时间/天");
            formsPlot3.Plot.YLabel("数据");
            formsPlot3.Plot.Title("xx人");
            formsPlot3.Plot.AddSignalXY(datetime3.ToArray(), value3.ToArray(), Color.Gray);
            formsPlot3.Plot.AxisAuto();
            formsPlot4.Plot.XLabel("时间/天");
            formsPlot4.Plot.YLabel("数据");
            formsPlot4.Plot.Title("xx人");
            formsPlot4.Plot.AddSignalXY(datetime4.ToArray(), value4.ToArray(), Color.Gray);
            formsPlot4.Plot.AxisAuto();
        }
        List<double> value1 = new List<double> { 2.5, 3.6, 7.8, 9.1, 9.8, 1.2, 4.5 };
        List<double> value2 = new List<double> { 2.1, 5.6, 5.8, 2.1, 4.8, 5.2, 1.5 };
        List<double> value3 = new List<double> { 1.5, 3.6, 2.8, 3.1, 5.8, 4.2, 3.5 };
        List<double> value4 = new List<double> { 1.5, 3.6, 2.8, 3.1, 5.8, 4.2, 3.5 };


        private void formsPlot2_Load(object sender, EventArgs e)
        {

        }

        private void formsPlot1_Load(object sender, EventArgs e)
        {

        }

        private void formsPlot3_Load(object sender, EventArgs e)
        {

        }

        private void formsPlot4_Load(object sender, EventArgs e)
        {

        }
    }
}
